-- GENERATED SPELL FOR [Efrem the Faithful] --


function spell0_30081(pUnit, Event) --@Crusader Strike,n/a--
pUnit:FullCastSpellOnTarget(14518,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30081', 30273, 1)
end

function spell1_30081(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(17232,pUnit)
pUnit:RegisterEvent('Sorts_30081', 561, 1)
end

function spell2_30081(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(13005,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30081', 6284, 1)
end

function spell3_30081(pUnit, Event) --@Lay on Hands,Heal--
pUnit:FullCastSpellOnTarget(17233,pUnit)
pUnit:RegisterEvent('Sorts_30081', 616, 1)
end

function Sorts_30081(pUnit, Event)
local choix_sorts_30081 = math.random(0, 3)
if choix_sorts_30081 == 0 then
pUnit:RegisterEvent('spell0_30081', 1, 1)
end
if choix_sorts_30081 == 1 then
pUnit:RegisterEvent('spell1_30081', 1, 1)
end
if choix_sorts_30081 == 2 then
pUnit:RegisterEvent('spell2_30081', 1, 1)
end
if choix_sorts_30081 == 3 then
pUnit:RegisterEvent('spell3_30081', 1, 1)
end
end

function mob30081_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30081', math.random(1500, 3000), 1)
end

function mob30081_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30081_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30081_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30081, 1, 'mob30081_Action')
RegisterUnitEvent(30081, 2, 'mob30081_Leave')
RegisterUnitEvent(30081, 3, 'mob30081_Kill')
RegisterUnitEvent(30081, 4, 'mob30081_Die')
